/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.acworks.acroute.test;

import com.acworks.acroute.v2.GraphFactory;
import com.acworks.acroute.v2.ImmutableGraph;
import java.util.Arrays;
import junit.framework.TestCase;

/**
 *
 * @author nikita
 */
abstract public class BaseTestCase extends TestCase {

    protected int width;
    protected int height;
    protected ImmutableGraph graph;
    protected Integer[] inputInts;

    public BaseTestCase(String testName) {
        super(testName);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        initGraph();
    }

    protected void initGraph() {
        final Integer[] ints = {
            2, 0, 0, 0,
            0, 0, 0, 0,
            0, 0, 3, 1
        };

        inputInts = ints;

        width = 4;
        height = 3;
        graph = GraphFactory.createImmutableGraph(width, height, Arrays.asList(ints));
    }
}
